﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;
using System.ComponentModel.DataAnnotations;


namespace KingRoad.EPM.SafetyManagementEntity.Model
{
    /// <summary> 
    /// 文件生成时间 2017/2/13 20:07:19
    /// </summary> 
    [Serializable]
    [ModelMap("Scm_RiskAssess", new string[] { "Ra_ID" })]
    public class ScmRiskassessInfo : BaseEntity
    {
        public ScmRiskassessInfo()
        {

        }
        
        
        private string _raId;
        /// <summary>
        /// 风险评估ID
        /// </summary>
        [ColumnMap("Ra_ID", System.Data.DbType.String)]
        public string Ra_ID
        {
            get {return _raId;}
            set
            {
                if (object.Equals(this._raId, value) != true)
                {
                    this._raId = value;
                    this.RaisePropertyChanged("Ra_ID");
                }
            }
        }
        
        
        private int _raOperateuserid;
        /// <summary>
        /// 操作人ID
        /// </summary>
        [ColumnMap("Ra_OperateUserID", System.Data.DbType.Int32)]
        public int Ra_OperateUserID
        {
            get {return _raOperateuserid;}
            set
            {
                if (object.Equals(this._raOperateuserid, value) != true)
                {
                    this._raOperateuserid = value;
                    this.RaisePropertyChanged("Ra_OperateUserID");
                }
            }
        }
        
        
        private string _raOperateusername;
        /// <summary>
        /// 操作人名称
        /// </summary>
        [ColumnMap("Ra_OperateUserName", System.Data.DbType.String)]
        public string Ra_OperateUserName
        {
            get {return _raOperateusername;}
            set
            {
                if (object.Equals(this._raOperateusername, value) != true)
                {
                    this._raOperateusername = value;
                    this.RaisePropertyChanged("Ra_OperateUserName");
                }
            }
        }
        
        
        private DateTime _raOperatetime;
        /// <summary>
        /// 操作时间
        /// </summary>
        [ColumnMap("Ra_OperateTime", System.Data.DbType.DateTime)]
        public DateTime Ra_OperateTime
        {
            get {return _raOperatetime;}
            set
            {
                if (object.Equals(this._raOperatetime, value) != true)
                {
                    this._raOperatetime = value;
                    this.RaisePropertyChanged("Ra_OperateTime");
                }
            }
        }
        
        
        private string _raSection;
        /// <summary>
        /// 标段
        /// </summary>
        [ColumnMap("Ra_Section", System.Data.DbType.String)]
        public string Ra_Section
        {
            get {return _raSection;}
            set
            {
                if (object.Equals(this._raSection, value) != true)
                {
                    this._raSection = value;
                    this.RaisePropertyChanged("Ra_Section");
                }
            }
        }
        
        
        private int _raConstructionid;
        /// <summary>
        /// 施工单位ID
        /// </summary>
        [ColumnMap("Ra_ConstructionID", System.Data.DbType.Int32)]
        public int Ra_ConstructionID
        {
            get {return _raConstructionid;}
            set
            {
                if (object.Equals(this._raConstructionid, value) != true)
                {
                    this._raConstructionid = value;
                    this.RaisePropertyChanged("Ra_ConstructionID");
                }
            }
        }
        
        
        private string _raConstructionname;
        /// <summary>
        /// 施工单位名称
        /// </summary>
        [ColumnMap("Ra_ConstructionName", System.Data.DbType.String)]
        public string Ra_ConstructionName
        {
            get {return _raConstructionname;}
            set
            {
                if (object.Equals(this._raConstructionname, value) != true)
                {
                    this._raConstructionname = value;
                    this.RaisePropertyChanged("Ra_ConstructionName");
                }
            }
        }
        
        
        private string _raProjectname;
        /// <summary>
        /// 工程名称
        /// </summary>
        [Required(ErrorMessage = "*")]
        [ExcelImportValidation("工程名称", 1, false, "请输入工程名称", "请输入工程名称")]
        [ColumnMap("Ra_ProjectName", System.Data.DbType.String)]
        public string Ra_ProjectName
        {
            get {return _raProjectname;}
            set
            {
                if (object.Equals(this._raProjectname, value) != true)
                {
                    this._raProjectname = value;
                    this.RaisePropertyChanged("Ra_ProjectName");
                }
            }
        }
        
        
        private string _raStakenumb;
        /// <summary>
        /// 桩号位置
        /// </summary>
        [ExcelImportValidation("桩号位置", 2)]
        [ColumnMap("Ra_StakeNumb", System.Data.DbType.String)]
        public string Ra_StakeNumb
        {
            get {return _raStakenumb;}
            set
            {
                if (object.Equals(this._raStakenumb, value) != true)
                {
                    this._raStakenumb = value;
                    this.RaisePropertyChanged("Ra_StakeNumb");
                }
            }
        }
        
        
        private string _raStructural;
        /// <summary>
        /// 结构形式
        /// </summary>
         [ExcelImportValidation("结构形式", 3)]
        [ColumnMap("Ra_Structural", System.Data.DbType.String)]
        public string Ra_Structural
        {
            get {return _raStructural;}
            set
            {
                if (object.Equals(this._raStructural, value) != true)
                {
                    this._raStructural = value;
                    this.RaisePropertyChanged("Ra_Structural");
                }
            }
        }
        
        
        private string _raLenthg;
        /// <summary>
        /// 长度
        /// </summary>
        [ExcelImportValidation("长度（米）", 4)]
        [ColumnMap("Ra_Lenthg", System.Data.DbType.String)]
        public string Ra_Lenthg
        {
            get {return _raLenthg;}
            set
            {
                if (object.Equals(this._raLenthg, value) != true)
                {
                    this._raLenthg = value;
                    this.RaisePropertyChanged("Ra_Lenthg");
                }
            }
        }
        
        
        private string _raRiskgrade;
        /// <summary>
        /// 风险等级
        /// </summary>
         [ExcelImportValidation("风险等级", 5)]
        [ColumnMap("Ra_RiskGrade", System.Data.DbType.String)]
        public string Ra_RiskGrade
        {
            get {return _raRiskgrade;}
            set
            {
                if (object.Equals(this._raRiskgrade, value) != true)
                {
                    this._raRiskgrade = value;
                    this.RaisePropertyChanged("Ra_RiskGrade");
                }
            }
        }
        
        
        private string _raRemark;
        /// <summary>
        /// 备注
        /// </summary>
         [ExcelImportValidation("备注", 6)]
        [ColumnMap("Ra_Remark", System.Data.DbType.String)]
        public string Ra_Remark
        {
            get {return _raRemark;}
            set
            {
                if (object.Equals(this._raRemark, value) != true)
                {
                    this._raRemark = value;
                    this.RaisePropertyChanged("Ra_Remark");
                }
            }
        }
        
        
    }
}



